/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jfonia.actions;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import org.jfonia.images.ImageConstants;
import org.jfonia.images.ScaledImageIcon;
import org.jfonia.language.DescriptionConstants;
import org.jfonia.language.LabelConstants;
import org.jfonia.language.LanguageResource;
import org.jfonia.view.main.Project;

/**
 *
 * @author Rik Bauwens
 */
public class SaveAsAction extends AbstractAction
{
        protected SaveAsAction(int iconMaxSize)
        {
                super(LanguageResource.getInstance().getLabel(LabelConstants.SAVE_AS),
                      new ScaledImageIcon(ImageConstants.SAVE_AS,
                      LanguageResource.getInstance().getDescription(DescriptionConstants.SAVE_AS))
                      .setMaximumSide(iconMaxSize).getImageIcon());
        }

        public void actionPerformed(ActionEvent e)
        {
                Project.getInstance().saveLeadSheetAs();
        }
}
